<div style="padding-left: 30px; font-size: 10pt;"><b>{messages block='View'}</b></div>
<div style="font-size: 9pt;">
	<form method="post" action="{url link=public.listing.viewall}">
		<b>{language text="classified_listings"}:</b>
		<select name="cat" onchange="submit();">
			{html_options options=$aCatHash selected=$aList.list_id}
		</select>
	</form>
</div>
<br />

<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">

        <div class="mainmenu5" style="padding: 8px;">
        	<img src="design/pic/spacer.gif" class="sqr" style="vertical-align: middle;" alt="" height="7" width="7">
        	<span style="vertical-align: middle;"><b>{language text="view_listing"}</b></span>
        </div>
        <div style="padding: 6px; font-size: 9pt;">
        	<table cellpadding="0" cellspacing="0" width="100%">
        		<tr>
        			<td align="left" width="50%">{if $bOwner}<a class="link_action" href="{$sUrl}edit_1">[ {language text="edit_listing"} ]</a>{/if}</td>
        			<td align="right" width="50%">{if $bOwner || $bAdmin}<a class="link_action" href="{$sUrl}del_1" onclick="if(!sure(''))return false;">[ {language text="delete_listing"} ]</a>{/if}</td>
        		</tr>
        	</table>
        </div>
        <table style="width: 100%;" cellpadding="5" cellspacing="5">
        	<tbody>
        		<tr>
        			<td style="width: 15%; text-align: center;">
        				<a href="{url link=public.user name=$aList.user}">
                            {Account::Avatar sUser=$aList.user iSize=75 class="pic1" onmouseover="showInfo5('`$aList.user`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
        				</a>
        			</td>
        			<td style="font-size: 9pt; width: 80%;" class="color">
        				<table style="width: 100%;">
        					<tbody>
        						<tr>
        							<td style="font-size: 9pt; width: 20%; text-align: right;" class="color">
        								<b>{language text="posted_by"}</b>:
        							</td>
        							<td style="font-size: 9pt; width: 80%;" class="color">
        								<a href="{url link=public.user name=$aList.user}">{$aList.user}</a>
        							</td>
        						</tr>
        						<tr>
        							<td style="font-size: 9pt; width: 20%; text-align: right;" class="color">
        								<b>{language text="date_399"}</b>:
        							</td>
        							<td style="font-size: 9pt; width: 80%;" class="color">{$aList.time|date_format:$sDateFormatDot}</td>
        						</tr>
        						<tr>
        							<td style="font-size: 9pt; width: 20%; text-align: right;" class="color">
        								<b>{language text="subject_458"}</b>:
        							</td>
        							<td style="font-size: 9pt; width: 80%;" class="color">{$aList.title|process_code}</td>
        						</tr>
        						<tr>
        							<td style="font-size: 9pt; width: 20%; text-align: right;" class="color">
        								<b>{language text="location_217"}</b>:
        							</td>
        							<td style="font-size: 9pt; width: 80%;" class="color">
        								{$aList.city|process_code}, {if $aList.state != ' ' and $aList.state} {$aList.state|process_code}{/if}  {$aList.location|process_code}
        							</td>
        						</tr>
        					</tbody>
        				</table>
        			</td>
        		</tr>
        	</tbody>
        </table>
        <table style="width: 100%;" cellpadding="5" cellspacing="5">
        	<tbody>
        		<tr>
        			<td style="font-size: 9pt;" class="color">
        				{$aList.text|process_code}
        				<br /><br /><br />
        				{if getUser('id')}
        				<table style="width: 100%;">
        					<tbody>
        						<tr>
        							<td style="width: 70%; font-size: 8pt;" class="color">
        								<table>
        									<tbody>
        										<tr>
        											<td class="mainmenu6" onclick="javascript:window.location.href='{$sUrl}rep_1';" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
        												<a href="{$sUrl}rep_1">{language text="_nbsp_nbsp_nbsp_reply_nbsp_nbsp_nbs"}</a>
        											</td>
        											<td>&nbsp;</td>
        											<td class="mainmenu6" onclick="javascript:window.location.href='{$sUrl}fwd_1';" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';">
        												<a href="{$sUrl}fwd_1">{language text="_nbsp_nbsp_forward_nbsp_nbsp"}</a>
        											</td>
        										</tr>
        									</tbody>
        								</table>
        							</td>
        						</tr>
        					</tbody>
        				</table>
        				{/if}
        			</td>
        		</tr>
        	</tbody>
        </table>
    </td>
</tr>
</table>